<!DOCTYPE html>
<html lang="en" style="height:100%">

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport"
		content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
	<meta name="version-build-time" content="<%= htmlWebpackPlugin.options.createDate %>" />
	<meta name="version-build-id" content="<%= htmlWebpackPlugin.options.buildId %>" />
	<title>华融湘江</title>
	<script>
		// 判断是企业微信客户端还是微信客户端 动态引入jssdk
		if (navigator.userAgent.indexOf('wxwork') > -1) {
			loadJS('https://res.wx.qq.com/open/js/jweixin-1.2.0.js', function () {
				window.$wx = wx
			});
			loadJS('https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js');
		} else {
			loadJS('https://res.wx.qq.com/open/js/jweixin-1.6.0.js', function () {
				window.$wx16 = wx
			});
		}
		// 动态引入文件方法
		function loadJS(url, callback) {
			var script = document.createElement('script');
			script.type = 'text/javascript';
			//IE
			if (script.readyState) {
				script.onreadystatechange = function () {
					if (script.readyState == 'loaded' || script.readyState == 'complete') {
						script.onreadystatechange = null;
						callback && callback();
					}
				};
			} else {
				//其他浏览器
				script.onload = function () {
					callback && callback();
				};
			}
			script.src = url;
			document.getElementsByTagName('head')[0].appendChild(script);
		}
	</script>
</head>

<body>
	<div id="app"></div>

</body>

</html>